﻿<UserControl x:Class="VmroleAuthor.Views.ViewDefLocalizableParameterView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignWidth="500">
    <Grid>       
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition MinHeight="30" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="1"/>
            <ColumnDefinition Width="15"/>
            <ColumnDefinition Width="0"/>
            <ColumnDefinition Width="38"/>
        </Grid.ColumnDefinitions>
        <ComboBox VerticalAlignment="Top" x:Name="ParamCmbBox" Grid.Column="0" Grid.Row="0" IsEditable="True"  ItemsSource="{Binding  AvailableLocalizedPropertyValues}" SelectedItem="{Binding SelectedPropertyValue}" Text="{Binding PropertyValue, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{x:Null}"/>      
        <CheckBox VerticalAlignment="Center" Style="{StaticResource ResourceKey=CheckBoxStyle}" Grid.Column="2" Grid.Row="0" IsChecked="{Binding IsLocalized, Mode=TwoWay}"/>
        <Label VerticalAlignment="Top" Grid.Row="0" Grid.Column="4" >Loc?</Label>              
        <ContentPresenter Grid.Row="1" Grid.Column="0"  Content="{Binding ElementName=ParamCmbBox, Path=(Validation.Errors).CurrentItem}" />       
    </Grid>
</UserControl>
